package com.java.zhuiyun.api.pictureidiomquestion.service;

import com.java.zhuiyun.api.pictureidiomlevel.model.PictureIdiomLevelModel;
import com.java.zhuiyun.api.pictureidiomquestion.entity.PictureIdiomQuestion;
import com.java.zhuiyun.api.pictureidiomquestion.model.PictureIdiomQuestionModel;
import com.java.zhuiyun.common.response.CommonResult;
import com.java.zhuiyun.util.pageUtil.PageRequest;
import com.java.zhuiyun.util.pageUtil.PageResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface PictureIdiomQuestionService {
    /**
    * @Author MJL
    * @Description todo 添加看图猜成语题库
    * @Date 2023/9/14 17:05
    * @Return  * @param null
    */
    CommonResult addPictureIdiomQuestion(MultipartFile file, PictureIdiomQuestionModel pictureIdiomQuestionModel);
    /**
    * @Author MJL
    * @Description todo 查询所有成语信息
    * @Date 2023/9/14 23:30
    * @Return  * @param null
    */
    PageResult queryPictureIdiomQuestion(PictureIdiomQuestionModel pictureIdiomQuestionModel, PageRequest pageRequest);
    /**
    * @Author MJL
    * @Description todo 查询出当前成语的错别字
    * @Date 2023/9/15 9:59
    * @Return  * @param null
    */
    List queryPictureIdiomQuestionTypos(PictureIdiomQuestion pictureIdiomQuestion);

    List<PictureIdiomQuestion> getByIdIdiom(Integer id);
    /**
    * @Author MJL
    * @Description todo 修改成语信息
    * @Date 2023/10/11 20:04
    * @Return  * @param null
    */
    CommonResult updatePictureIdiom(MultipartFile file, PictureIdiomQuestionModel pictureIdiomQuestionModel);
    /**
    * @Author MJL
    * @Description todo 根据关卡查询出当前的成语信息
    * @Date 2023/10/13 13:32
    * @Return  * @param null
    */
    List<PictureIdiomQuestion> getByIdIdiomByLevel(Integer level);
    /**
    * @Author MJL
    * @Description todo 批量删除
    * @Date 2023/10/16 9:58
    * @Return  * @param null
    */
    CommonResult deletePictureIdiom(String id);
    /**
    * @Author MJL
    * @Description todo 查询当前关卡成语数量
    * @Date 2023/10/16 19:57
    * @Return  * @param null
    */
    List<PictureIdiomLevelModel> queryLevelNum(Integer id);
    /**
    * @Author MJL
    * @Description todo 查询关卡下拉框
    * @Date 2023/10/17 11:09
    * @Return  * @param null
    */
    List<PictureIdiomLevelModel> queryLevel(Integer id);
    /**
    * @Author MJL
    * @Description todo 删除成语
    * @Date 2023/10/22 18:41
    * @Return  * @param null
    */
    CommonResult deletePictureIdioms(Integer id);
}
